﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;

namespace Controller
{
    public class FacilityController
    {
        protected FacilityBussiness Controller = new FacilityBussiness();
        public TblFacility objFacility { get; set; }

        public void AddData()
        {
            Controller.AddData(objFacility);
        }

        public bool DeleteData(int k)
        {
            return Controller.DeleteData(k);
        }

        public void UpdateData()
        {
            Controller.UpdateData(objFacility);
        }

        public List<TblFacility> GetAllData()
        {
            return Controller.GetAll();
        }

        public TblFacility GetDataByRoomTypeID(int k)
        {
            return Controller.GetDataByKey(k);
        }

        /*cac phuong thuc mo rong khac*/
    }
}
